function useState<T>(init: T): [T, (newValue: T) => void] {
  let state = init;

  function setInit(newValue: T) {
    state = newValue;
  }

  return [init, setInit];
}

const [state, setState] = useState(12);
export {};
